import Vue from 'vue'
import Router from 'vue-router'
import meeting_appointment from "../page/meeting_appointment";
import login from "../page/login";
import index from "../page/index"
import List from '../page/views/list.vue'
import MyList from '../page/views/myList.vue'
import Reserve from '../page/views/reserve.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path:'/',
      name:'login',
      component: login
    }, {
      path:'/meeting_appointment',
      name:'meeting_appointment',
      component: meeting_appointment
    }, {
      path:'/index',
      name:'index',
      component: index,
      children:[
        {
          path:'/list',
          component:List
        },
        {
          path:'/mylist',
          component:MyList
        },
        {
          path:'/reserve',
          component:Reserve
        },
        
      ]
    }
  ]
})

const VueRouterPush = Router.prototype.push;
Router.prototype.push = function push (to) {
  return VueRouterPush.call(this, to).catch(err => err);
}
